/*
 * 保险
 * <p>根据银保监会的文件要求，保险行业财产险公司的车险业务，用户在投保缴费（微信&amp;支付宝&amp;银行卡）之前，必须要完成支付人的实名验证，确保支付人与投保人一致才能缴费。目前实名认证存在四种模式，分别为：中保信模式、上海模式、深圳模式和江苏模式，其中中保信模式和上海模式要求支付机构与实名平台专线对接（已有专线），深圳和江苏是公网对接。因实名平台的接口仅支持有支付牌照的收单机构对接，所以部署一套单独的保险实名认证服务在易宝中台，支撑保险商户业务的正常进行。</p>
 *
 * OpenAPI spec version: 1.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.yeepay.yop.sdk.service.insurance.model;

import org.apache.commons.lang3.ObjectUtils;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.HashMap;
import java.util.Map;

/**
 * RealnameNotifyCommonNoticeResponseDTOResult
 */
public class RealnameNotifyCommonNoticeResponseDTOResult implements Serializable{

  private static final long serialVersionUID = 1L;

  /**
   * 未命名
   */
  @JsonProperty("code")
  private String code = null;

  /**
   * 未命名
   */
  @JsonProperty("msg")
  private String msg = null;

  /**
   * 返回状态
   */
  @JsonProperty("status")
  private String status = null;

  /**
   * 查询请求号
   */
  @JsonProperty("queryNo")
  private String queryNo = null;

  /**
   * 金额
   */
  @JsonProperty("amount")
  private String amount = null;

  /**
   * 交易流水号
   */
  @JsonProperty("tradeNo")
  private String tradeNo = null;

  public RealnameNotifyCommonNoticeResponseDTOResult code(String code) {
    this.code = code;
    return this;
  }

   /**
   * 未命名
   * @return code
  **/

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public RealnameNotifyCommonNoticeResponseDTOResult msg(String msg) {
    this.msg = msg;
    return this;
  }

   /**
   * 未命名
   * @return msg
  **/

  public String getMsg() {
    return msg;
  }

  public void setMsg(String msg) {
    this.msg = msg;
  }

  public RealnameNotifyCommonNoticeResponseDTOResult status(String status) {
    this.status = status;
    return this;
  }

   /**
   * 返回状态
   * @return status
  **/

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public RealnameNotifyCommonNoticeResponseDTOResult queryNo(String queryNo) {
    this.queryNo = queryNo;
    return this;
  }

   /**
   * 查询请求号
   * @return queryNo
  **/

  public String getQueryNo() {
    return queryNo;
  }

  public void setQueryNo(String queryNo) {
    this.queryNo = queryNo;
  }

  public RealnameNotifyCommonNoticeResponseDTOResult amount(String amount) {
    this.amount = amount;
    return this;
  }

   /**
   * 金额
   * @return amount
  **/

  public String getAmount() {
    return amount;
  }

  public void setAmount(String amount) {
    this.amount = amount;
  }

  public RealnameNotifyCommonNoticeResponseDTOResult tradeNo(String tradeNo) {
    this.tradeNo = tradeNo;
    return this;
  }

   /**
   * 交易流水号
   * @return tradeNo
  **/

  public String getTradeNo() {
    return tradeNo;
  }

  public void setTradeNo(String tradeNo) {
    this.tradeNo = tradeNo;
  }


  @Override
  public boolean equals(java.lang.Object o) {
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
    RealnameNotifyCommonNoticeResponseDTOResult realnameNotifyCommonNoticeResponseDTOResult = (RealnameNotifyCommonNoticeResponseDTOResult) o;
    return ObjectUtils.equals(this.code, realnameNotifyCommonNoticeResponseDTOResult.code) &&
    ObjectUtils.equals(this.msg, realnameNotifyCommonNoticeResponseDTOResult.msg) &&
    ObjectUtils.equals(this.status, realnameNotifyCommonNoticeResponseDTOResult.status) &&
    ObjectUtils.equals(this.queryNo, realnameNotifyCommonNoticeResponseDTOResult.queryNo) &&
    ObjectUtils.equals(this.amount, realnameNotifyCommonNoticeResponseDTOResult.amount) &&
    ObjectUtils.equals(this.tradeNo, realnameNotifyCommonNoticeResponseDTOResult.tradeNo);
  }

  @Override
  public int hashCode() {
    return ObjectUtils.hashCodeMulti(code, msg, status, queryNo, amount, tradeNo);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class RealnameNotifyCommonNoticeResponseDTOResult {\n");
    
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    msg: ").append(toIndentedString(msg)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    queryNo: ").append(toIndentedString(queryNo)).append("\n");
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
    sb.append("    tradeNo: ").append(toIndentedString(tradeNo)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

  private final Map<String, Object> _extParamMap = new HashMap<>();

  @JsonAnySetter
  public Map<String, Object> addParam(String name, Object value) {
    if (null != name && null != value) {
      _extParamMap.put(name, value);
    }
    return _extParamMap;
  }

  @JsonAnyGetter
  public Map<String, Object> get_extParamMap() {
    return _extParamMap;
  }

  @JsonIgnore
  public <T> T get_extParam(String name) {
    return (T) _extParamMap.get(name);
  }

}

